const dynamicRoutes = [
  {
    path: '/control-management',
    name: 'control-management',
    component: () => import('../views/control/index.vue'),
    meta: {
      caption: '费用监控',
      icon: 'el-icon-s-finance',
      requiresAuth: true
    },
    children: [
      {
        path: '/control-management/in-cost-control',
        name: 'in-cost-control',
        component: () => import('../views/control/in-cost-control.vue'),
        meta: {
          caption: '住院费用监控',
          icon: 'el-icon-shopping-cart-1',
          requiresAuth: true
        }
      },
      {
        path: '/control-management/out-cost-control',
        name: 'out-cost-control',
        component: () => import('../views/control/out-cost-control.vue'),
        meta: {
          caption: '门诊费用监控',
          icon: 'el-icon-shopping-cart-1',
          requiresAuth: true
        }
      }
    ]
  },
  {
    path: '/medicine-control-management',
    name: 'medicine-control-management',
    component: () => import('../views/medicine-control/index.vue'),
    meta: {
      caption: '费用控制',
      icon: 'el-icon-s-finance',
      requiresAuth: true
    },
    children: [
      {
        path: '/medicine-control-management/overcharge',
        name: 'overcharge',
        component: () => import('../views/medicine-control/overcharge.vue'),
        meta: {
          caption: '超费控制',
          icon: 'el-icon-shopping-cart-1',
          requiresAuth: true
        }
      },
      {
        path: '/medicine-control-management/prescription',
        name: 'prescription',
        component: () => import('../views/medicine-control/prescription.vue'),
        meta: {
          caption: '处方控制',
          icon: 'el-icon-shopping-cart-1',
          requiresAuth: true
        }
      }
    ]
  },
  {
    path: '/drgs',
    name: 'drgs',
    component: () => import('../views/drgs/index.vue'),
    meta: {
      caption: 'DRGS查询',
      icon: 'el-icon-document',
      requiresAuth: true
    },
    children: [
      {
        path: '/drgs/drgs-query',
        name: 'drgs-query',
        component: () => import('../views/drgs/drgs-query.vue'),
        meta: {
          caption: 'DRGS查询',
          requiresAuth: true
        }
      },
      {
        path: '/drgs/drgs-control',
        name: 'drgs-control',
        component: () => import('../views/drgs/drgs-control.vue'),
        meta: {
          caption: '病案验证',
          requiresAuth: true
        }
      },
      {
        path: '/drgs/drgs-rateopt',
        name: 'drgs-rateopt',
        component: () => import('../views/drgs/drgs-rateopt.vue'),
        meta: {
          caption: 'DRG权重费率维护',
          requiresAuth: true
        }
      },
      {
        path: '/drgs/drgs-check',
        name: 'drgs-check',
        component: () => import('../views/drgs/drgs-check.vue'),
        meta: {
          caption: '病案审核',
          requiresAuth: true
        }
      },
      {
        path: '/drgs/drgs-income',
        name: 'drgs-income',
        component: () => import('../views/drgs/drgs-income.vue'),
        meta: {
          caption: 'DRG收益率',
          requiresAuth: true
        }
      }
    ]
  },
  {
    path: '/reports',
    name: 'reports',
    component: () => import('../views/reports/index.vue'),
    meta: {
      caption: '报表查询',
      icon: 'el-icon-document',
      requiresAuth: true
    },
    children: [
      {
        path: '/reports/out-charge-statistics',
        name: 'out-charge-statistics',
        component: () => import('../views/reports/out-charge-statistics.vue'),
        meta: {
          caption: '门诊费用统计',
          requiresAuth: true
        }
      },
      {
        path: '/reports/in-charge-statistics',
        name: 'in-charge-statistics',
        component: () => import('../views/reports/in-charge-statistics.vue'),
        meta: {
          caption: '住院费用统计',
          requiresAuth: true
        }
      },
      {
        path: '/reports/mi-cost-query',
        name: 'mi-cost-query',
        component: () => import('../views/reports/mi-cost-query.vue'),
        meta: {
          caption: '医保费用查询',
          requiresAuth: true
        }
      }
    ]
  },
  {
    path: '/system',
    name: 'system',
    component: () => import('../views/system/index.vue'),
    meta: {
      caption: '系统设置',
      icon: 'el-icon-setting',
      requiresAuth: true
    },
    children: [
      {
        path: '/system/user-setting',
        name: 'user-setting',
        component: () => import('../views/system/user-setting.vue'),
        meta: {
          caption: '用户管理',
          requiresAuth: true
        }
      },
      {
        path: '/system/login-setting',
        name: 'login-setting',
        component: () => import('../views/system/login-setting.vue'),
        meta: {
          caption: '登录设置',
          requiresAuth: true
        }
      }
    ]
  }
]

export default dynamicRoutes
